PowerTCP Mail for .NET
Write(Byte[],Int32,Int32) Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > PipeStream Class > Write Method : Write(Byte[],Int32,Int32) Method




buffer
The storage location for the written data.
offset
The zero-based position in the buffer from which to begin writing from.
count
The exact number of bytes to write.
Writes data to the stream.

Syntax

Visual Basic (Declaration) 
Public Overloads Overrides Sub Write( _
   ByVal buffer() As Byte, _
   ByVal offset As Integer, _
   ByVal count As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As PipeStream
Dim buffer() As Byte
Dim offset As Integer
Dim count As Integer
 
instance.Write(buffer, offset, count)
C# 
public override void Write( 
   byte[] buffer,
   int offset,
   int count
)
Managed Extensions for C++ 
public: void Write( 
   byte[]* buffer,
   int offset,
   int count
) override 
C++/CLI 
public:
void Write( 
   array<byte>^ buffer,
   int offset,
   int count
) override 

Parameters

buffer
The storage location for the written data.
offset
The zero-based position in the buffer from which to begin writing from.
count
The exact number of bytes to write.

Exceptions

ExceptionDescription
System.IO.IOExceptionThrown when the Stream is not writeable.
System.ArgumentNullExceptionThrown when the buffer is null.
System.ArgumentOutOfRangeExceptionThrown when the offset is less than zero or when count is less than or equal to zero.
System.ArgumentExceptionThrown when the (offset + count) > buffer.Length.

Remarks

This method actually calls PipeStream.CoreStream.Write, passing the data "through" the PipeStream and into PipeStream.CoreStream.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.